import React from 'react'
const Home = () => {
  const handleClick = () => {
    location.href = 'http://192.168.124.21:8377/about';
  }

  const sendParent = () => {
    Jump.postMessage(JSON.stringify({ a: 'hellow word!!!', b: { c: 2222 } }))
  }

  return (
    <div className='home'>
      <div>


        <div>
          <button onClick={handleClick}>跳转</button>
        </div>
        
        <input style={{ width: '200px', height: '30px', margin: '10px' }} />
        <input style={{ width: '200px', height: '30px', margin: '10px' }} />
        <input style={{ width: '200px', height: '30px', margin: '10px' }} />
        <input style={{ width: '200px', height: '30px', margin: '10px' }} />
        <input style={{ width: '200px', height: '30px', margin: '10px' }} />
        <input style={{ width: '200px', height: '30px', margin: '10px' }} />
        <input style={{ width: '200px', height: '30px', margin: '10px' }} />
        <input style={{ width: '200px', height: '30px', margin: '10px' }} />
        <input style={{ width: '200px', height: '30px', margin: '10px' }} />
        <div>
          <button onClick={sendParent}>send</button>
        </div>

      </div>
      
    </div>
  )
};

export default Home;
